package com.danei.a01staticdemo1;

public class StudentTest {
    public static void main(String[] args) {
        Student.teacherName = "阿杜老师";
        //1.创建一个学生对象
        Student s1 = new Student();
        s1.setName("张代伟");
        s1.setAge(33);
        s1.setGender("男");
//        s1.teacherName = "阿杜老师";

        s1.study();
        s1.show();
        //2.创建第二个学生对象
        //1.鼠标滚轮竖着选择要修改的字符
        //按住alt不松，用鼠标左键选择要修改的字符
        Student s2 = new Student();
        s2.setName("马云峰");
        s2.setAge(22);
        s2.setGender("女");
//        s2.teacherName = "啊杜老师";
        s2.study();
        s2.show();
    }
}
